package org.springframework;

import org.springframework.beans.Cat;
import org.springframework.config.MyConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Main {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);
		Cat bean1 = context.getBean(Cat.class);
		Cat bean = context.getBean(Cat.class);
		System.out.println(bean1 == bean);


	}
}